<?php

$arr = array_slice($argv, 1);
foreach($arr as $file)
{
	$file = '/tmp/'.$file;

	if( !is_file( $file ) )
	{
		echo $file." not file.\n";
	}

	elseif( strpos( $file, 'htm') === false )
	{
		echo $file." not html file.\n";
	} 
	else
	{
		$str = file_get_contents($file);
		$count = substr_count($str, "\\");
		echo $file." count \\=".print_r($count)."\n";
		$str = str_replace("\\", '', $str);
		file_put_contents($file, $str);
	}

}
